<%--
  Created by IntelliJ IDEA.
  User: jiang
  Date: 2022/6/15
  Time: 13:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>编辑学生信息</title>
</head>
<body>
<div class="main">
    <h2 class="title"><span>编辑学生信息</span></h2>
    <form action="StudentController.do?act=EditBookPost" method="post">
        <fieldset>
            <legend>学生信息</legend>
            <p>
                <label for="name">学生名称：</label>
                <input type="text" id="name" name="name"  value="${model.name}"/>
            </p>
            <p>
                <label for="name">学生年龄：</label>
                <input type="text" id="age" name="age" value="${model.age}"/>
            </p>
            <p>
                <label for="name">所属学院：</label>
                <input type="text" id="college" name="college" value="${model.college}"/>
            </p>
            <p>
                <label for="name">入学日期：</label>
                <input type="text" id="admissionDate" name="admissionDate"  value="<fmt:formatDate value="${model.admissionDate}" pattern="yyyy-MM-dd"/>"/>
            </p>
            <p>
                <input type="hidden" id="id" name="id" value="${model.id}"/>
                <input type="submit" value="保存" class="btn">
            </p>
        </fieldset>
    </form>
    <p style="color: red">${message}</p>
    <p>
        <a href="StudentController.do?act=ListBook" class="abtn">返回列表</a>
    </p>
</div>

</body>
</html>